package com.archie.mongodb;
import java.util.Date;

public class Model1 {
	private String _id;
	private int age;
	private String name;
	private String hh;
	private Date date;
	private Model2 model2;
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Model2 getModel2() {
		return model2;
	}
	public void setModel2(Model2 model2) {
		this.model2 = model2;
	}
	@Override
	public String toString() {
		return "Model1 [_id=" + _id + ", age=" + age + ", name=" + name + ", hh=" + hh + ", date=" + date + ", model2="
				+ model2 + "]";
	}
	public Date getDate() {
		return date;
	}
	public void setDate(Date date) {
		this.date = date;
	}
	public String getHh() {
		return hh;
	}
	public void setHh(String hh) {
		this.hh = hh;
	}
	public String get_id() {
		return _id;
	}
	public void set_id(String _id) {
		this._id = _id;
	}
	
}
